<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <base href="<%=basePath%>">
    
    <title>修改设备信息</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
  <link href="css/style.css" rel="stylesheet" type="text/css" />
  </head>
  
  <body>
  
    	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">首页</a></li>
    <li><a href="#">设备列表信息</a></li>
   <li><a href="#">修改设备</a></li>
    </ul>
    </div>
    
    <div class="formbody">
    
    <div class="formtitle"><span>基本信息</span></div>
    
    <ul class="forminfo">
     <li><label>二维码：</label> ${equipment.qrcode}</li>
        <img src="http://qr.liantu.com/api.php?text=${equipment.qrcode}">
    </ul>
    <form action="<%=basePath%>admin/updateEq.action" method="post" id="myform">
    <input name="equipment.id" type="hidden" class="dfinput" value="${equipment.id}" readonly="readonly"/>
    <ul class="forminfo">
    <li><label>设备编号</label><input name="equipment.equipmentid" type="text" class="dfinput" value="${equipment.equipmentid}" readonly="readonly"/><i style="color:red;font-size:12px;">*</i></li>
    <li><label>设备名称</label><input name="equipment.name" type="text" class="dfinput" value="${equipment.name}"/><i style="color:red;font-size:12px;">*</i></li>
    <li><label>设备类别</label>
    <select name="equipment.classes" >
    <s:iterator value="listclass" var="list" status="index">
    <option value="${list.id}"<s:if test='#list.id==equipment.classes'>selected="selected" </s:if> >${list.classname}</option>
    </s:iterator>
    </select>
   
    </li>
    <li><label>生产日期</label>
    <input class="dfinput Wdate" name="equipment.productiondate" value="<s:date format='yyyy-MM-dd HH:mm:ss' name='equipment.productiondate' />" onfocus="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd HH:mm:ss',isShowWeek:true})"  />
    </li>
    <li><label>产商</label><input name="equipment.producer" type="text" class="dfinput"  value="${equipment.producer}"/></li>
    <li><label>设备状态</label>
    <input type="radio" <s:if test="equipment.status==1"> checked="checked"</s:if> name="estatus" value="1"/>正在使用
    <input type="radio" <s:if test="equipment.status==2"> checked="checked"</s:if> name="estatus" value="2"/>维修中
    <i style="color:red;font-size:12px;">(不可手动修改，维修需要提交申请)</i>
    </li>
    <li><label>&nbsp;</label><input name="" type="submit" class="btn" value="确认保存"/> <input type="button" name="button" value="返回" class="btn" onclick="javascript:window.history.back(-1);"/></li>
    </ul>
    </form>
    </div>

    
  </body>
</html>
